<script>
    document.domain = window.location.hostname.split('.').slice(0 - 3).join('.');
</script>